package com.example.springboot_sp.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.springboot_sp.controller.dto.UserDTO;
import com.example.springboot_sp.controller.dto.UserPasswordDTO;
import com.example.springboot_sp.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 郭守军
 * @since 2022-08-18
 */
public interface IUserService extends IService<User> {

    UserDTO login(UserDTO userDTO);

    User register(UserDTO userDTO);

    void updatePassword(UserPasswordDTO userPasswordDTO);


    User UserDataFindByArticle(Integer articleId);

    Integer findReadNumber(Integer id);

    Integer findCollectionNumber(Integer id);

    User allInforOfPersonal(Integer userId);

    List<User> fiveUser();
}

